package com.css.dzj.zfjg.modules.seriouslllegal.entity;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.Objects;

/**
 * 企业严重违法信息
 */
@Entity
@Table(name = "JG_LHJG_SERIOUS_ILLEGAL", schema = "DZJZFJG", catalog = "")
public class JgLhjgSeriousIllegalEntity {
    private String seriousIllegalId;
    private String taskNo;
    private String enterpriseName;
    private String enterpriseCreditCode;
    private String illegalReason;
    private String illegalDepartment;
    private String illegalListDate;
    private String illegalListRreasons;
    private String illegalListPutdptm;
    private String illegalPutDate;

    @Id
    @Column(name = "SERIOUS_ILLEGAL_ID")
    @GeneratedValue(generator = "idGenerator")
    @GenericGenerator(name = "idGenerator", strategy = "com.css.dzj.zfjg.common.util.SnowflakeId")
    public String getSeriousIllegalId() {
        return seriousIllegalId;
    }

    public void setSeriousIllegalId(String seriousIllegalId) {
        this.seriousIllegalId = seriousIllegalId;
    }

    @Basic
    @Column(name = "TASK_NO")
    public String getTaskNo() {
        return taskNo;
    }

    public void setTaskNo(String taskNo) {
        this.taskNo = taskNo;
    }

    @Basic
    @Column(name = "ENTERPRISE_NAME")
    public String getEnterpriseName() {
        return enterpriseName;
    }

    public void setEnterpriseName(String enterpriseName) {
        this.enterpriseName = enterpriseName;
    }

    @Basic
    @Column(name = "ENTERPRISE_CREDIT_CODE")
    public String getEnterpriseCreditCode() {
        return enterpriseCreditCode;
    }

    public void setEnterpriseCreditCode(String enterpriseCreditCode) {
        this.enterpriseCreditCode = enterpriseCreditCode;
    }

    @Basic
    @Column(name = "ILLEGAL_REASON")
    public String getIllegalReason() {
        return illegalReason;
    }

    public void setIllegalReason(String illegalReason) {
        this.illegalReason = illegalReason;
    }

    @Basic
    @Column(name = "ILLEGAL_DEPARTMENT")
    public String getIllegalDepartment() {
        return illegalDepartment;
    }

    public void setIllegalDepartment(String illegalDepartment) {
        this.illegalDepartment = illegalDepartment;
    }

    @Basic
    @Column(name = "ILLEGAL_LIST_DATE")
    public String getIllegalListDate() {
        return illegalListDate;
    }

    public void setIllegalListDate(String illegalListDate) {
        this.illegalListDate = illegalListDate;
    }

    @Basic
    @Column(name = "ILLEGAL_LIST_RREASONS")
    public String getIllegalListRreasons() {
        return illegalListRreasons;
    }

    public void setIllegalListRreasons(String illegalListRreasons) {
        this.illegalListRreasons = illegalListRreasons;
    }

    @Basic
    @Column(name = "ILLEGAL_LIST_PUTDPTM")
    public String getIllegalListPutdptm() {
        return illegalListPutdptm;
    }

    public void setIllegalListPutdptm(String illegalListPutdptm) {
        this.illegalListPutdptm = illegalListPutdptm;
    }

    @Basic
    @Column(name = "ILLEGAL_PUT_DATE")
    public String getIllegalPutDate() {
        return illegalPutDate;
    }

    public void setIllegalPutDate(String illegalPutDate) {
        this.illegalPutDate = illegalPutDate;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        JgLhjgSeriousIllegalEntity that = (JgLhjgSeriousIllegalEntity) o;
        return Objects.equals(seriousIllegalId, that.seriousIllegalId) &&
                Objects.equals(taskNo, that.taskNo) &&
                Objects.equals(enterpriseName, that.enterpriseName) &&
                Objects.equals(enterpriseCreditCode, that.enterpriseCreditCode) &&
                Objects.equals(illegalReason, that.illegalReason) &&
                Objects.equals(illegalDepartment, that.illegalDepartment) &&
                Objects.equals(illegalListDate, that.illegalListDate) &&
                Objects.equals(illegalListRreasons, that.illegalListRreasons) &&
                Objects.equals(illegalListPutdptm, that.illegalListPutdptm) &&
                Objects.equals(illegalPutDate, that.illegalPutDate);
    }

    @Override
    public int hashCode() {
        return Objects.hash(seriousIllegalId, taskNo, enterpriseName, enterpriseCreditCode, illegalReason, illegalDepartment, illegalListDate, illegalListRreasons, illegalListPutdptm, illegalPutDate);
    }
}
